import { Get, Model, Post } from "~/utils/annotate";
import { EmptyOut, GetRoutersOut, GetUserInfoOut } from "./interface";

@Model('')
export default class CommonService {

    @Get('/getRouters')
    getRouters(res) {
        return new GetRoutersOut(res.code, res).result()
    }

    @Get('/getInfo')
    getUserInfo(res) {
        return new GetUserInfoOut(res.code, res).result()
    }

    getList() { }
}

@Model('/xkl', false)
export class LocalService {
    @Post('/saveApiConfig')
    saveApiConfig(res) {
        return new EmptyOut(res.code, res).result()
    }
}